#ifndef SMALL_WIDGET_H
#define SMALL_WIDGET_H

#include <QWidget>
#include <QSpinBox>

namespace Ui {
class small_widget;
}

class small_widget : public QWidget
{
    Q_OBJECT

public:
    explicit small_widget(QWidget *parent = nullptr);
    ~small_widget();
    //获取
    int getvalue();
    //设置
    void setvalue(int num);
    QSpinBox *spinBox;

private:
    Ui::small_widget *ui;

};

#endif // SMALL_WIDGET_H
